<?php 
/**
 * GioCMS
 * 
 * LICENSE
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-2.0.txt
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@ninhgio.com so we can send you a copy immediately.
 * 
 * @copyright	Copyright (c) 2010-2011 GioCMS (http://cms.ninhgio.com)
 * @license		http://www.gnu.org/licenses/gpl-2.0.txt GNU GENERAL PUBLIC LICENSE Version 2
 * @author		NinhGio - ninhgio@gmail.com
 * @since		1.0
 */
?>
<?php if (isset($this->comments) && $this->comments) : ?>
<div class="g_comment_box">
	<div class="g_comment_box_header">Ý kiến bạn đọc</div>
	<div class="g_comment_box_content">
		<div id="g_comment_box_content_display">
			<div class="customScrollBox">
				<div class="container">
					<div id="feedback-list" class="content list">
						<?php foreach ($this->comments as $index => $comment) : ?>
						<div class="g_comment_item">
							<div class="g_comment_item_h">.</div>
							<div class="g_comment_item_c">
								<div class="padding_5">
									<p class="title"><b><?php echo sprintf($this->TRANSLATOR->widget('comment_info'), $comment['full_name'], date($this->CONFIG->timezone->datetime, strtotime($comment['created_date']))); ?></b></p>
									<p class="description"><b><i><?php echo $comment['title']; ?>:</i></b> <?php echo $comment['content']; ?></p>
								</div>
							</div>
							<div class="g_comment_item_f">.</div>
						</div>
						<?php endforeach; ?>
					</div>
				</div>
				<div class="dragger_container" style="display: block;">
					<div class="dragger ui-draggable" style="display: block; top: 0px;"></div>
				</div>
			</div>
		</div>
		<div class="pagy cm-page" id="paging" style="padding: 0 5px;"><?php echo $this->pager->links; ?>&nbsp;<label class="recordcount"><?php echo sprintf($this->TRANSLATOR->widget('comment_total'), $this->numComments); ?></label></div>
		<div class="g_comment_box_footer">.</div>
	</div>
</div>
<?php endif; ?>